package com.bw.zhuangao5___day002.Fragment.Movies.SQL;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

/**
 * 类名： SQLMovies
 * 作者： Android工程师杨晨
 * 日期： 2021/9/28 16:58
 * DAO：  ZhuanGao5___Day002
 */
public class SQLMovies  extends SQLiteOpenHelper {

    public SQLMovies(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table movies (title varchar(1000),pic varchar(1000),collect_num varchar(1000),food_str varchar(1000),num integer)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
